package com.huangfu.learning.javabase.java.restructure.polymorphicreplaceswitch.polymorphic;

/**
 * Created with IntelliJ IDEA.
 * Author: huangfu.daohui
 * Date: 2018/11/13
 * Time: 10:55
 * Version: 1.0
 * Description: 经理
 **/
public class Manager extends EmployeeType {

    /**
     * 薪资=基本工资+奖金
     *
     * @return
     */
    @Override
    int payAmount() {
        return EmployeeNew.salary + EmployeeNew.bonus;
    }
}
